﻿Japan Pro Golf Tour 64 Network Tournament Password Generator v1.0

Introduction:
  As is obvious by the absurdly long title, this program generates one of the two password types used by the 64DD title "Japan Pro Golf Tour 64".  Typing the generated password into the "Network Tournament" page allows you to start a game with the selected options.
  When the tournament is complete, you'll be asked to save your game.  Selecting this save file will display your results, followed by a password which encodes this data.  Normally you would have entered this password into a page dedicated to the game on Randnet to share your results, but you're twenty years too late for that.

  Starting a net game requires one free LBA in the RAM portion of your disk.


Requirements:
  Something that runs 64bit Windows executables; tested on Vista, Win7, & Win10.
  Some degree of Japanese font support.


Usage:
  In the unfortunately obvious event this readme is not circulated with the executable, hovering over pretty much any element of the program will provide a bit of information about what that field is.

  Select a course in the top-most box.  Note that the original game comes with 10 courses but is expandable to upwards of 32 through downloadable content.  This should be obvious, but don't select a course number above what you actually have or the game will get grumpy.

  The "PlayerID" is a unique identifier.  Outputting a player's name on completion is an optional field so this is what would sort you out.  However, since Randnet no longer exists you can use this however you see fit.
  "Tournament#" ranges from 0 to 255.  This is used on the back-end to sort between multiple tournaments.  If you're going to make multiple tournaments, given them different values.
  "Day # of #" primarily applies to multiday tournaments, the same way the longer two & four day tournaments work in the game.  A game is over when the first number matches the second.
  You can select between a half-game (9 holes) or a normal 18 hole game.  Much to my chagrin, there are no options for individual holes.

  The same weather settings available in the Options Menu can be found here.  The value actually supports 16 settings, but the others are not implemented.  Attempting to use them may, for instance, color all the trees blue.
  Wind, when at 0 meters/second, randomizes its speed and direction.  In this case, a toggle is provided for random wind or to select a specific speed and direction, upwards of gale-force gusting.  Wind can not be deactivated.  Note the direction in-game has no reference and is determined relative of the player and hole's orientation.  Keya's first hole is oriented nearly due-east, so this was used as reference.

  When special rules are in effect additional data will be added to the results password.  "Near Pin", "Longest Drive", and "Hole in One" apply only to a specific hole on the course.  For instance, it will only register if a player made a hole-in-one on the selected hole but no others.  Distances for the others are only recorded on those holes and no others.
  "Club Limitation" restricts players to only using the given type of club in the game.  No other clubs will be in their bag; each will be set to the given club.  This applies to the putter as well, which makes for some funny situations.
  "Time Attack" outputs your total play time.

  The toggles in the "Output Data" box influence what will appear in the results password when you complete the tournament.  The minimal data always returned are the tournament#, the current day, an LCG-encoded string built from your PlayerID and other values, and checksum.  The result password is shorter the less data it encodes.
  By default, all of the available toggles are set on.  If you don't wish to output certain data, such as individual hole scores when you're only interested in the total score, you can turn them off here.

  The "Reset" button does exactly as expected.  The initial values replace whatever modifications you made.

  A password will be provided when the "Generate" button is pressed.  If any of the data fields have invalid values a password will not be generated and the field will be rectified as best as possible--or the program will crash.
  The password is a 20-character string of Japanese moji, though in practice the last will be a space.  This requires your computer have some sort of support for Japanese, which it almost-always should anyway.  Enter this into the "Start Game -> Network Tournament" password field to start a game.

  Note that only one active tournament is allowed at a time and you may get a message regarding this if you try to start another.
  When you start the game, if a net.dat file does not exist it will be created in the RAM portion of your disk.  This saves the game settings, a copy of the original password, as well as a share of the player settings found in a saved game file and the final password on completion.


Notes:
  Since you were kind enough to read this lengthy document, here's a treat!  To enable selecting a player's dominant hand and height enter this button code on the title screen:
  C-Up, C-Right, C-Down, C-Left, Start
  This will be saved so you won't need to re-enter it again.

-Zoinkity
